//
//  MM_NetAPIManager.h
//  MM
//
//  Created by 郑渊文 on 5/22/15.
//  Copyright (c) 2015 王晨辉. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "APIClient.h"
#import "UserDAL.h"

@interface MM_NetAPIManager : NSObject

+ (instancetype)sharedManager;


//登陆
+ (NSURLSessionDataTask *)getUser:(NSDictionary *)paramDic
                          success:(void (^)(UserDAL *user))block
                           failed:(void (^)(NSError *error))error;

- (void)request_Login_WithParams:(id)params andBlock:(void (^)(id data, NSError *error))block;
- (void)request_Register_WithParams:(id)params andBlock:(void (^)(id data, NSError *error))block;
- (void)request_CaptchaNeededWithPath:(NSString *)path andBlock:(void (^)(id data, NSError *error))block;


@end
